import { http } from "@/utils/http";
import { AxiosPromise } from "axios";

export const searchCustomList = (
  query?: any
): AxiosPromise<any> => {
  return http.request({
    url: "/wiki/custom/searchList",
    method: "get",
    params: query
  });
};

export const saveCustom = (data: any): AxiosPromise<any> => {
  return http.request({
    url: '/wiki/custom',
    method: 'post',
    data
  });
};

export const updateCustom = (data: any): AxiosPromise<any> => {
  return http.request({
    url: '/wiki/custom',
    method: 'put',
    data
  });
};
